package com.zhiwen.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: wuzhiwen
 * @Date: 2019/2/12 13:43
 * @Description:
 */
@RestController
public class ProductController {

    @Autowired
    private JmsTemplate jmsTemplate;

    @RequestMapping("/product")
    public boolean producttest() {
        jmsTemplate.convertAndSend("hello ,how are you");
        jmsTemplate.convertAndSend("custom-destination1","hello1............how are you");
        return true;
    }

}
